package com.piggy.im.server.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.piggy.common.core.web.page.BaseMapperPlus;
import com.piggy.im.domain.SysStationMessage;
import com.piggy.im.domain.vo.SysStationMessageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 站内消息Mapper接口
 *
 * @author piggy
 * @date 2021-12-09
 */
public interface SysStationMessageMapper extends BaseMapperPlus<SysStationMessage> {

    List<SysStationMessageVo> selectMsgList(@Param("ew") Wrapper<SysStationMessage> ew, @Param("userId")Long userId);

    Long selectUnRead(@Param("ew") Wrapper<SysStationMessage> ew, @Param("userId")Long userId);

}
